<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.css">


</head>
<body>
    <div id="app">
       {{100 | currency('$')}}
    </div>

</body>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
    let vm =  new Vue({
       el: '#app',
        filters:{
            currency(val,type){
                return type + val;
            }
        },
        data:{
            a:'爱心',
            b:''

        }

    }).$mount('#app');
    vm.$destroy();


</script>
</html>